#! /bin/sh
#lsof：统计哪些线程在/opt/applog目录下有io操作
for ((i=1; i<=1800; i++))
do
  date  >> /var/tmp/testlsof.log & lsof | grep /opt/applog  >> /var/tmp/testlsof.log 
  sleep 20
  echo $i
done

